/**
 * @Author Stringzhua
 * @Date 2024/1/23 19:21
 * description:演示四种进制
 */
public class BinaryTest {
    public static void main(String[] args) {
        //n1 二进制
        int n1 = 0b1010;
        //n2十进制
        int n2 = 1010;
        //n3八进制
        int n3 = 01010;
        //n4 16进制
        int n4 = 0x10101;
        System.out.println("n1 = " + n1);
        System.out.println("n2 = " + n2);
        System.out.println("n3 = " + n3);
        System.out.println("n4 = " + n4);
    }
}
